package com.itany.vue.controller;

import com.itany.vue.entity.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author:shixiaojun@itany.com
 * Date: 2022/3/24 17:16
 * Version: 1.0-SNAPSHOT
 */
@RestController
@RequestMapping("/users")
public class UserController {

    @RequestMapping("/f1")
    public User f1(){
        return new User(1,"admin","123456");
    }

    @RequestMapping("/f2")
    public User f2(Integer id,String username,String password){
        return new User(id,username,password);
    }

}
